﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WyUnity.Utility.Dynamic
{
    /// <summary>
    /// 表示复制对象属性的选项
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
    public class CopyOptionAttribute : Attribute
    {
        public CopyOptionAttribute(Type target, string targetProp)
        {
            TargetType = target;
            TargetProp = targetProp;
        }
        /// <summary>
        /// 目标类型
        /// </summary>
        public Type TargetType { get; set; }
        /// <summary>
        /// 目标属性
        /// </summary>
        public string TargetProp { get; set; }
    }
}
